package com.minutes.in.seconds.ui.screens;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.minutes.in.seconds.R;
import com.minutes.in.seconds.ui.event.MenuBarEventHandler;

public class MenuBarFragment extends Fragment  {

	private View mLibrary;
	
	private View mMeeting;
	
	private View mSetting;
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		View view = inflater.inflate(R.layout.menu_bar,
		        container, false);
		
		mLibrary = view.findViewById(R.id.library_menu_bar);
		mMeeting = view.findViewById(R.id.add_meeting_menu_bar);
		mSetting = view.findViewById(R.id.settings_menu_bar);
		
		MenuBarEventHandler eventHandler = new MenuBarEventHandler(this); 
		mLibrary.setOnClickListener(eventHandler);
		mMeeting.setOnClickListener(eventHandler);
		mSetting.setOnClickListener(eventHandler);
		
		return view;
	}

	public View getmLibrary() {
		return mLibrary;
	}

	public View getmMeeting() {
		return mMeeting;
	}

	public View getmSetting() {
		return mSetting;
	}
}
